package main

import (
	"fmt"
	"os"
)

func main() {
	srcPath := "../output.txt"
	targetPath := "../output_copy.txt"
	content, err := os.ReadFile(srcPath)
	if err != nil {
		fmt.Println("文件打开出错", err)
		return
	}
	err = os.WriteFile(targetPath, content, os.FileMode(0666))
	if err != nil {
		fmt.Println("文件写入失败", err)
		return
	}
}
